<template>
  <div class="questionBox">
    <el-form ref="questionForm" :model="questionForm" label-width="100px">
      <el-form-item label="材料内容">
        <tinymce :height="400" v-model="questionForm.content" style="width:60%" />
      </el-form-item>
    </el-form>
    <div class="flootBtn">
      <el-button v-if="source!=='audit'" type="primary">保存</el-button>
      <el-button v-if="source!=='audit'" type="primary">提交审核</el-button>
      <el-button v-if="source=='audit'" type="primary">审核通过继续审核</el-button>
      <el-button v-if="source=='audit'" type="primary">审核不通过继续审核</el-button>
      <el-button>取消</el-button>
    </div>
  </div>
</template>
<script>
import Tinymce from '@/components/Tinymce'
export default {
  components: {
    Tinymce
  },
  data() {
    return {
      source: '',
      questionForm: {
        content: ''
      }
    }
  },
  created() {
    this.source = this.$route.query.click
    console.log(this.source)
  },
  methods: {

  }
}
</script>
<style lang="scss" scoped>
.questionBox {
  padding: 20px;
  .topicIcon {
    font-size: 30px;
  }
  .choiceIcon {
    font-size: 20px;
  }
  .flootBtn {
    text-align: center;
    margin: 20px;
  }
}
</style>
